timestamp calculations

Поиск
Список
Период
Сортировка
От Steve Leibel
Тема timestamp calculations
Дата
Msg-id v04210122b69663a58cdd@[24.168.80.161]
обсуждение исходный текст
Ответ на option to log just queries with some error - pgsql 7.1  (Tomaz Borstnar <tomaz.borstnar@over.net>)
Ответы Re: timestamp calculations
Список pgsql-general
Hello,

I'm converting a mysql db to postgres and ran into this line of code:

   $SQL = "select username from users where user_id = ? AND session = ?
           AND ADDDATE(last_login, INTERVAL 30 MINUTE)>CURRENT_TIMESTAMP()

How do I implement adddate to get this kind of funcionality?

Thanks,

Steve Leibel

В списке pgsql-general по дате отправления:

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: The type int8 and the use of indexes
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: timestamp calculations